<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 100px;
            height: 100px;
            background-color: khaki;
            overflow-x: auto;
            overflow-y: auto;
        }
        .box .item{
            width: 500px;
            height: 10px;
            background-color: skyblue;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="item"></div>
        啥处理都不做，我是文本内容2，我是文本内容2，我是文本内容2，我是文本内容2我是文本内容2，我是文本内容2</div>
</body>
</html>